
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module pychess.Players.PyChess</title>
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong><a href="pychess.html"><font color="#ffffff">pychess</font></a>.<a href="pychess.Players.html"><font color="#ffffff">Players</font></a>.PyChess</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/thomas/Programmering/python/skak/svn/lib/pychess/Players/PyChess.py">/home/thomas/Programmering/python/skak/svn/lib/pychess/Players/PyChess.py</a></font></td></tr></table>
    <p></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
    
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="pychess.Utils.eval.html">pychess.Utils.eval</a><br>
</td><td width="25%" valign=top><a href="random.html">random</a><br>
</td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
    
<tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="pychess.Players.Engine.html#Engine">pychess.Players.Engine.Engine</a>(<a href="pychess.Players.Player.html#Player">pychess.Players.Player.Player</a>)
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="pychess.Players.PyChess.html#PyChessEngine">PyChessEngine</a>
</font></dt></dl>
</dd>
</dl>
 <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="PyChessEngine">class <strong>PyChessEngine</strong></a>(<a href="pychess.Players.Engine.html#Engine">pychess.Players.Engine.Engine</a>)</font></td></tr>
    
<tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="pychess.Players.PyChess.html#PyChessEngine">PyChessEngine</a></dd>
<dd><a href="pychess.Players.Engine.html#Engine">pychess.Players.Engine.Engine</a></dd>
<dd><a href="pychess.Players.Player.html#Player">pychess.Players.Player.Player</a></dd>
<dd><a href="gobject.html#GObject">gobject.GObject</a></dd>
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="PyChessEngine-__init__"><strong>__init__</strong></a>(self, executable, color)</dt></dl>

<dl><dt><a name="PyChessEngine-__kill__"><strong>__kill__</strong></a>(self)</dt></dl>

<dl><dt><a name="PyChessEngine-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>

<dl><dt><a name="PyChessEngine-analyze"><strong>analyze</strong></a>(self)</dt></dl>

<dl><dt><a name="PyChessEngine-canAnalyze"><strong>canAnalyze</strong></a>(self)</dt></dl>

<dl><dt><a name="PyChessEngine-makeMove"><strong>makeMove</strong></a>(self, history)</dt></dl>

<dl><dt><a name="PyChessEngine-offerDraw"><strong>offerDraw</strong></a>(self)</dt></dl>

<dl><dt><a name="PyChessEngine-runAnalyze"><strong>runAnalyze</strong></a>(self, history)</dt></dl>

<dl><dt><a name="PyChessEngine-setBoard"><strong>setBoard</strong></a>(self, history)</dt></dl>

<dl><dt><a name="PyChessEngine-setStrength"><strong>setStrength</strong></a>(self, strength)</dt></dl>

<dl><dt><a name="PyChessEngine-setTime"><strong>setTime</strong></a>(self, secs, gain)</dt></dl>

<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__gtype__</strong> = &lt;GType pychess+Players+PyChess+PyChessEngine (154022536)&gt;</dl>

<hr>
Methods inherited from <a href="pychess.Players.Engine.html#Engine">pychess.Players.Engine.Engine</a>:<br>
<dl><dt><a name="PyChessEngine-undoMoves"><strong>undoMoves</strong></a>(self, moves<font color="#909090">=1</font>)</dt><dd><tt>Undos&nbsp;a&nbsp;number&nbsp;of&nbsp;moves.</tt></dd></dl>

<dl><dt><a name="PyChessEngine-wait"><strong>wait</strong></a>(self)</dt></dl>

<hr>
Data and other attributes inherited from <a href="pychess.Players.Engine.html#Engine">pychess.Players.Engine.Engine</a>:<br>
<dl><dt><strong>__type__</strong> = 1</dl>

<hr>
Methods inherited from <a href="pychess.Players.Player.html#Player">pychess.Players.Player.Player</a>:<br>
<dl><dt><a name="PyChessEngine-__del__"><strong>__del__</strong></a>(self)</dt><dd><tt>Called&nbsp;in&nbsp;the&nbsp;end&nbsp;of&nbsp;the&nbsp;game,&nbsp;or&nbsp;when&nbsp;the&nbsp;engines&nbsp;is&nbsp;otherwise&nbsp;ment&nbsp;to&nbsp;die.<br>
Use&nbsp;for&nbsp;closing&nbsp;connections&nbsp;etc.</tt></dd></dl>

<dl><dt><a name="PyChessEngine-hurry"><strong>hurry</strong></a>(self)</dt><dd><tt>Forces&nbsp;engines&nbsp;to&nbsp;move&nbsp;now,&nbsp;and&nbsp;sends&nbsp;a&nbsp;hurry&nbsp;message&nbsp;to&nbsp;nonlocal&nbsp;human&nbsp;players</tt></dd></dl>

<dl><dt><a name="PyChessEngine-setName"><strong>setName</strong></a>(self, name)</dt></dl>

<dl><dt><a name="PyChessEngine-showBoard"><strong>showBoard</strong></a>(self)</dt><dd><tt>Print&nbsp;the&nbsp;board&nbsp;as&nbsp;it&nbsp;the&nbsp;players&nbsp;sees&nbsp;it,&nbsp;e.g.&nbsp;in&nbsp;fen.&nbsp;Used&nbsp;for&nbsp;debugging&nbsp;only</tt></dd></dl>

<hr>
Data and other attributes inherited from <a href="pychess.Players.Player.html#Player">pychess.Players.Player.Player</a>:<br>
<dl><dt><strong>DRAW_ACCEPTION</strong> = 3</dl>

<dl><dt><strong>DRAW_OFFER</strong> = 2</dl>

<dl><dt><strong>FLAG_CALL</strong> = 1</dl>

<dl><dt><strong>RESIGNATION</strong> = 0</dl>

<hr>
Methods inherited from <a href="gobject.html#GObject">gobject.GObject</a>:<br>
<dl><dt><a name="PyChessEngine-__cmp__"><strong>__cmp__</strong></a>(...)</dt><dd><tt>x.<a href="#PyChessEngine-__cmp__">__cmp__</a>(y)&nbsp;&lt;==&gt;&nbsp;cmp(x,y)</tt></dd></dl>

<dl><dt><a name="PyChessEngine-__gobject_init__"><strong>__gobject_init__</strong></a>(...)</dt></dl>

<dl><dt><a name="PyChessEngine-__hash__"><strong>__hash__</strong></a>(...)</dt><dd><tt>x.<a href="#PyChessEngine-__hash__">__hash__</a>()&nbsp;&lt;==&gt;&nbsp;hash(x)</tt></dd></dl>

<dl><dt><a name="PyChessEngine-chain"><strong>chain</strong></a>(...)</dt></dl>

<dl><dt><a name="PyChessEngine-connect"><strong>connect</strong></a>(...)</dt></dl>

<dl><dt><a name="PyChessEngine-connect_after"><strong>connect_after</strong></a>(...)</dt></dl>

<dl><dt><a name="PyChessEngine-connect_object"><strong>connect_object</strong></a>(...)</dt></dl>

<dl><dt><a name="PyChessEngine-connect_object_after"><strong>connect_object_after</strong></a>(...)</dt></dl>

<dl><dt><a name="PyChessEngine-disconnect"><strong>disconnect</strong></a>(...)</dt></dl>

<dl><dt><a name="PyChessEngine-disconnect_by_func"><strong>disconnect_by_func</strong></a>(...)</dt></dl>

<dl><dt><a name="PyChessEngine-emit"><strong>emit</strong></a>(...)</dt></dl>

<dl><dt><a name="PyChessEngine-emit_stop_by_name"><strong>emit_stop_by_name</strong></a>(...)</dt></dl>

<dl><dt><a name="PyChessEngine-freeze_notify"><strong>freeze_notify</strong></a>(...)</dt></dl>

<dl><dt><a name="PyChessEngine-get_data"><strong>get_data</strong></a>(...)</dt></dl>

<dl><dt><a name="PyChessEngine-get_property"><strong>get_property</strong></a>(...)</dt></dl>

<dl><dt><a name="PyChessEngine-handler_block"><strong>handler_block</strong></a>(...)</dt></dl>

<dl><dt><a name="PyChessEngine-handler_block_by_func"><strong>handler_block_by_func</strong></a>(...)</dt></dl>

<dl><dt><a name="PyChessEngine-handler_disconnect"><strong>handler_disconnect</strong></a>(...)</dt></dl>

<dl><dt><a name="PyChessEngine-handler_is_connected"><strong>handler_is_connected</strong></a>(...)</dt></dl>

<dl><dt><a name="PyChessEngine-handler_unblock"><strong>handler_unblock</strong></a>(...)</dt></dl>

<dl><dt><a name="PyChessEngine-handler_unblock_by_func"><strong>handler_unblock_by_func</strong></a>(...)</dt></dl>

<dl><dt><a name="PyChessEngine-notify"><strong>notify</strong></a>(...)</dt></dl>

<dl><dt><a name="PyChessEngine-set_data"><strong>set_data</strong></a>(...)</dt></dl>

<dl><dt><a name="PyChessEngine-set_property"><strong>set_property</strong></a>(...)</dt></dl>

<dl><dt><a name="PyChessEngine-stop_emission"><strong>stop_emission</strong></a>(...)</dt></dl>

<dl><dt><a name="PyChessEngine-thaw_notify"><strong>thaw_notify</strong></a>(...)</dt></dl>

<hr>
Data and other attributes inherited from <a href="gobject.html#GObject">gobject.GObject</a>:<br>
<dl><dt><strong>__dict__</strong> = &lt;dictproxy object&gt;</dl>

<dl><dt><strong>__gdoc__</strong> = 'Object pychess+Players+PyChess+PyChessEngine<font color="#c040c0">\n\n</font>Si...ead ()<font color="#c040c0">\n\n</font>Signals from GObject:<font color="#c040c0">\n</font>  notify (GParam)<font color="#c040c0">\n\n</font>'</dl>

<dl><dt><strong>__grefcount__</strong> = &lt;attribute '__grefcount__' of 'gobject.GObject' objects&gt;</dl>

<dl><dt><strong>__new__</strong> = &lt;built-in method __new__ of GObjectMeta object&gt;<dd><tt>T.<a href="#PyChessEngine-__new__">__new__</a>(S,&nbsp;...)&nbsp;-&gt;&nbsp;a&nbsp;new&nbsp;object&nbsp;with&nbsp;type&nbsp;S,&nbsp;a&nbsp;subtype&nbsp;of&nbsp;T</tt></dl>

<dl><dt><strong>props</strong> = &lt;gobject.GProps object&gt;</dl>

</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
    
<tr><td bgcolor="#eeaa77"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt><a name="-Lock"><strong>Lock</strong></a> = allocate_lock(...)</dt><dd><tt>allocate_lock()&nbsp;-&gt;&nbsp;lock&nbsp;object<br>
(allocate()&nbsp;is&nbsp;an&nbsp;obsolete&nbsp;synonym)<br>
&nbsp;<br>
Create&nbsp;a&nbsp;new&nbsp;lock&nbsp;object.&nbsp;&nbsp;See&nbsp;LockType.__doc__&nbsp;for&nbsp;information&nbsp;about&nbsp;locks.</tt></dd></dl>
 <dl><dt><a name="-alphaBeta"><strong>alphaBeta</strong></a>(engine, board, depth, alpha, beta, capture<font color="#909090">=False</font>)</dt></dl>
 <dl><dt><a name="-getBestOpening"><strong>getBestOpening</strong></a>(board)</dt></dl>
 <dl><dt><a name="-moves"><strong>moves</strong></a>(board)</dt></dl>
 <dl><dt><a name="-time"><strong>time</strong></a>(...)</dt><dd><tt><a href="#-time">time</a>()&nbsp;-&gt;&nbsp;floating&nbsp;point&nbsp;number<br>
&nbsp;<br>
Return&nbsp;the&nbsp;current&nbsp;time&nbsp;in&nbsp;seconds&nbsp;since&nbsp;the&nbsp;Epoch.<br>
Fractions&nbsp;of&nbsp;a&nbsp;second&nbsp;may&nbsp;be&nbsp;present&nbsp;if&nbsp;the&nbsp;system&nbsp;clock&nbsp;provides&nbsp;them.</tt></dd></dl>
</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
    
<tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><strong>ARTIFICIAL</strong> = 1<br>
<strong>BISHOP</strong> = 3<br>
<strong>BLACK</strong> = 1<br>
<strong>BLACKWON</strong> = 3<br>
<strong>BLACK_CASTLED</strong> = 32<br>
<strong>BLACK_OO</strong> = 4<br>
<strong>BLACK_OOO</strong> = 8<br>
<strong>DRAW</strong> = 1<br>
<strong>DRAW_50MOVES</strong> = 1<br>
<strong>DRAW_AGREE</strong> = 3<br>
<strong>DRAW_REPITITION</strong> = 0<br>
<strong>DRAW_STALEMATE</strong> = 2<br>
<strong>KING</strong> = 0<br>
<strong>KNIGHT</strong> = 4<br>
<strong>LOCAL</strong> = 0<br>
<strong>NAME</strong> = 'PyChess'<br>
<strong>PAWN</strong> = 5<br>
<strong>PREFIX</strong> = '/home/thomas/Programmering/python/skak/svn'<br>
<strong>QUEEN</strong> = 1<br>
<strong>REMOTE</strong> = 2<br>
<strong>ROOK</strong> = 2<br>
<strong>RUNNING</strong> = 0<br>
<strong>SIGNAL_RUN_FIRST</strong> = 1<br>
<strong>TYPE_NONE</strong> = &lt;GType void (4)&gt;<br>
<strong>TYPE_PYOBJECT</strong> = &lt;GType PyObject (153826304)&gt;<br>
<strong>VERSION</strong> = '0.5.2'<br>
<strong>WHITE</strong> = 0<br>
<strong>WHITEWON</strong> = 2<br>
<strong>WHITE_CASTLED</strong> = 16<br>
<strong>WHITE_OO</strong> = 1<br>
<strong>WHITE_OOO</strong> = 2<br>
<strong>WON_CALLFLAG</strong> = 5<br>
<strong>WON_MATE</strong> = 6<br>
<strong>WON_RESIGN</strong> = 4<br>
<strong>chr2Sign</strong> = {'b': 3, 'k': 0, 'n': 4, 'p': 5, 'q': 1, 'r': 2}<br>
<strong>hisPool</strong> = &lt;pychess.Utils.History.HistoryPool instance&gt;<br>
<strong>localePrefixes</strong> = ('/usr/share/locale', '/usr/local/share/locale')<br>
<strong>movePool</strong> = &lt;pychess.Utils.Move.MovePool instance&gt;<br>
<strong>pool</strong> = &lt;pychess.System.ThreadPool.ThreadPool instance&gt;<br>
<strong>prefixes</strong> = ('/usr/share', '/usr/local/share', '/usr/share/games', '/usr/local/share/games')<br>
<strong>reprColor</strong> = ['White', 'Black']<br>
<strong>reprPiece</strong> = ['King', 'Queen', 'Rook', 'Bishop', 'Knight', 'Pawn']<br>
<strong>reprResult</strong> = ['*', '1/2-1/2', '1-0', '0-1']<br>
<strong>reprSign</strong> = ['K', 'Q', 'R', 'B', 'N', 'P']</td></tr></table>
</body></html>